﻿// This source file is part of WallpaperControl, a tool for automatic changing 
// of the desktop wallpaper.
// 
// Visit http://wpcontrol.sourceforge.net/ for more.
//
// Copyright (c) 2014 nscrolldev
//
// Licensed under the GPLv2.
// See http://www.gnu.org/licenses/gpl-2.0.html for details.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

using System;
using System.Runtime.Serialization;

namespace WallpaperControl
{
    /// <summary>
    /// Exception that is thrown if the image format is unsupported.
    /// </summary>
    [Serializable]
    public class ImageFormatException : Exception
    {
        public ImageFormatException()
        {
        }

        public ImageFormatException(string message)
            : base(message)
        {
        }

        public ImageFormatException(string message, Exception inner)
            : base(message, inner)
        {
        }

        protected ImageFormatException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}
